package com.meihuak.cloud_ordering.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meihuak.cloud_ordering.bean.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DishMapper extends BaseMapper<Dish> {

    @Select("select * from dish where win_id = #{id}")
    List<Dish> queryAllByWinId(int id);

}
